(global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/meituangroup/secondsKill" ], {
    "3d3c": function(e, t, n) {
        n.r(t);
        var i, o = n("efd4"), a = n("b017");
        for (i in a) "default" !== i && function(e) {
            n.d(t, e, function() {
                return a[e];
            });
        }(i);
        n("d9a1");
        var s = n("f0c5"), o = Object(s.a)(a.default, o.b, o.c, !1, null, null, null, !1, o.a, void 0);
        t.default = o.exports;
    },
    6606: function(e, t, n) {
        (function(e) {
            function t(e) {
                return e && e.__esModule ? e : {
                    default: e
                };
            }
            n("0cda"), t(n("66fd")), e(t(n("3d3c")).default);
        }).call(this, n("543d").createPage);
    },
    6863: function(e, i, l) {
        (function(o) {
            Object.defineProperty(i, "__esModule", {
                value: !0
            }), i.default = void 0;
            var e, a = (e = l("a34a")) && e.__esModule ? e : {
                default: e
            };
            function r(e, t, n, i, o, a, s) {
                try {
                    var l = e[a](s), r = l.value;
                } catch (e) {
                    return n(e), 0;
                }
                l.done ? t(r) : Promise.resolve(r).then(i, o);
            }
            var s = getApp(), n = {
                data: function() {
                    return {
                        module_name: s.globalData.module_name,
                        showAlert_login: !1,
                        userinfo: o.getStorageSync("userinfo"),
                        setting: o.getStorageSync("setting"),
                        loading: !0,
                        platform_id: 2,
                        isLogin: !1,
                        scroll_left: 0,
                        province_list: [],
                        province_id: "",
                        city_id: "",
                        location: {},
                        location_in_baidu: {},
                        session_list: [ {
                            start_time_format: "2021-04-01 18:00:00"
                        } ],
                        firstOngoing: !1,
                        current_session_index: 0,
                        show_id: "",
                        page: 1,
                        seconds_kill_list: [ {
                            seckillShopDealInfoVO: {
                                shopName: "庄和宜北京烤鸭",
                                barea_name: "科技市场/硅谷广场",
                                distance: 266,
                                avg_score: 4.7,
                                deal_list: [ {
                                    title: "北京烤鸭3-4人餐",
                                    final_price: 33.8,
                                    market_price: 86,
                                    fan_money: 1.01,
                                    sheng_money: 50.99
                                } ]
                            }
                        }, {
                            seckillShopDealInfoVO: {
                                shopName: "庄和宜北京烤鸭",
                                barea_name: "科技市场/硅谷广场",
                                distance: 266,
                                avg_score: 4.7,
                                deal_list: [ {
                                    title: "北京烤鸭3-4人餐",
                                    final_price: 33.8,
                                    market_price: 86,
                                    fan_money: 1.01,
                                    sheng_money: 50.99
                                } ]
                            }
                        }, {
                            seckillShopDealInfoVO: {
                                shopName: "庄和宜北京烤鸭",
                                barea_name: "科技市场/硅谷广场",
                                distance: 266,
                                avg_score: 4.7,
                                deal_list: [ {
                                    title: "北京烤鸭3-4人餐",
                                    final_price: 33.8,
                                    market_price: 86,
                                    fan_money: 1.01,
                                    sheng_money: 50.99
                                } ]
                            }
                        } ],
                        timestamp: 0,
                        list_load_status: "loading"
                    };
                },
                filters: {
                    time_format: function(e) {
                        e = e.split(" ")[1].split(":");
                        return e[0] + ":" + e[1];
                    },
                    label_format: function(e) {
                        var t = new Date().getDate();
                        return (t = (t < 10 ? "0" : "") + t) !== e.split(" ")[0].split("-")[2] ? "明日开抢" : "即将开抢";
                    },
                    distance: function(e) {
                        return 1e3 < e ? (e / 1e3).toFixed(1) + "km" : e + "m";
                    },
                    discount: function(e) {
                        return (Number(e.finalPrice) / Number(e.marketPrice) * 10).toFixed(1);
                    }
                },
                onLoad: function(e) {
                    var l, i = this;
                    return l = a.default.mark(function e() {
                        var n, t;
                        return a.default.wrap(function(e) {
                            for (;;) switch (e.prev = e.next) {
                              case 0:
                                return e.next = 2, i.$onLaunched;

                              case 2:
                                (n = i).setting = o.getStorageSync("setting"), n.tabBar = o.getStorageSync("tabbar"), 
                                n.userinfo = o.getStorageSync("userinfo"), n.module_name = s.globalData.module_name, 
                                t = s.globalData.util.url("entry/wxapp/meituangroup_secondskillindex", {
                                    m: s.globalData.module_name
                                }), o.request({
                                    url: t,
                                    method: "POST",
                                    header: {
                                        "content-type": "application/x-www-form-urlencoded"
                                    },
                                    data: {
                                        lon: o.getStorageSync("lon"),
                                        lat: o.getStorageSync("lat"),
                                        openid: o.getStorageSync("openid"),
                                        city_id: o.getStorageSync("city_id"),
                                        systemtype: o.getStorageSync("systemtype")
                                    },
                                    success: function(e) {
                                        n.session_list = e.data.seckillshowlist, n.show_id = n.session_list[n.current_session_index].showId;
                                        var t = +new Date().getTime();
                                        e.data.seckillshowlist[0].endTime, t >= e.data.seckillshowlist[0].startTime ? (n.timestamp = (e.data.seckillshowlist[0].endTime - +new Date().getTime()) / 1e3, 
                                        n.firstOngoing = 1) : (n.timestamp = 0, n.firstOngoing = 0), n.getSecondsKill();
                                    }
                                });

                              case 9:
                              case "end":
                                return e.stop();
                            }
                        }, e);
                    }), function() {
                        var e = this, s = arguments;
                        return new Promise(function(t, n) {
                            var i = l.apply(e, s);
                            function o(e) {
                                r(i, t, n, o, a, "next", e);
                            }
                            function a(e) {
                                r(i, t, n, o, a, "throw", e);
                            }
                            o(void 0);
                        });
                    }();
                },
                onReachBottom: function() {
                    "nomore" != this.list_load_status && this.getSecondsKill();
                },
                methods: {
                    getSecondsKill: function() {
                        var n = this;
                        this.list_load_status = "loading";
                        var e = s.globalData.util.url("entry/wxapp/meituangroup_secondskilllist", {
                            m: s.globalData.module_name
                        });
                        o.request({
                            url: e,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                lon: o.getStorageSync("lon"),
                                lat: o.getStorageSync("lat"),
                                show_id: n.show_id,
                                openid: o.getStorageSync("openid"),
                                city_id: o.getStorageSync("city_id"),
                                page: n.page,
                                systemtype: o.getStorageSync("systemtype")
                            },
                            success: function(e) {
                                n.loading = !1;
                                var t = e.data.seckilllist;
                                1 == e.data.has_more ? n.list_load_status = "loadmore" : n.list_load_status = "nomore", 
                                1 == n.page ? n.seconds_kill_list = t : n.seconds_kill_list = n.seconds_kill_list.concat(t), 
                                n.page++, n.show_id = n.session_list[n.current_session_index].showId;
                                t = +new Date().getTime();
                                n.session_list[n.current_session_index].endTime, t >= n.session_list[n.current_session_index].startTime ? (n.timestamp = (n.session_list[n.current_session_index].endTime - +new Date().getTime()) / 1e3, 
                                n.firstOngoing = 1) : (n.timestamp = 0, n.firstOngoing = 0), o.hideLoading();
                            }
                        });
                    },
                    sessionChange: function(e) {
                        o.showLoading({
                            title: "加载中...",
                            mask: !1
                        }), this.seconds_kill_list = [], this.page = 1, this.list_load_status = "loading", 
                        this.current_session_index = e.currentTarget.dataset.cid, this.show_id = e.currentTarget.dataset.sid, 
                        this.getSecondsKill(!0, function() {
                            t.pageScrollTo({
                                scrollTop: 0
                            });
                        });
                    },
                    openMeituan: function(e) {
                        o.navigateToMiniProgram({
                            appId: "wxde8ac0a21135c07d",
                            path: e.currentTarget.dataset.url
                        });
                    }
                }
            };
            i.default = n;
        }).call(this, l("543d").default);
    },
    b017: function(e, t, n) {
        n.r(t);
        var i, o = n("6863"), a = n.n(o);
        for (i in o) "default" !== i && function(e) {
            n.d(t, e, function() {
                return o[e];
            });
        }(i);
        t.default = a.a;
    },
    d838: function(e, t, n) {},
    d9a1: function(e, t, n) {
        var i = n("d838");
        n.n(i).a;
    },
    efd4: function(e, t, n) {
        n.d(t, "b", function() {
            return o;
        }), n.d(t, "c", function() {
            return a;
        }), n.d(t, "a", function() {
            return i;
        });
        var i = {
            uCountDown: function() {
                return n.e("uview-ui/components/u-count-down/u-count-down").then(n.bind(null, "37c9"));
            },
            uRate: function() {
                return n.e("uview-ui/components/u-rate/u-rate").then(n.bind(null, "da7e"));
            },
            uEmpty: function() {
                return n.e("uview-ui/components/u-empty/u-empty").then(n.bind(null, "b399"));
            },
            uLoadmore: function() {
                return n.e("uview-ui/components/u-loadmore/u-loadmore").then(n.bind(null, "2220"));
            },
            uSkeleton: function() {
                return n.e("uview-ui/components/u-skeleton/u-skeleton").then(n.bind(null, "0c69"));
            }
        }, o = function() {
            var i = this, e = (i.$createElement, i._self._c, i.__map(i.seconds_kill_list, function(n, e) {
                return {
                    $orig: i.__get_orig(n),
                    g0: 1e3 <= n.seckillShopDealInfoVO.distance ? Math.round(n.seckillShopDealInfoVO.distance / 1e3 * 100) : null,
                    l0: i.__map(n.seckillShopDealInfoVO.dealList, function(e, t) {
                        return {
                            $orig: i.__get_orig(e),
                            g1: 0 < n.seckillShopDealInfoVO.dealList.length ? Math.round(e.finalPrice / e.marketPrice * 100) : null
                        };
                    })
                };
            }));
            i.$mp.data = Object.assign({}, {
                $root: {
                    l1: e
                }
            });
        }, a = [];
    }
}, [ [ "6606", "common/runtime", "common/vendor" ] ] ]);